package com.netty.client;

import com.nettryhomework.RpcRequest;
import com.nettryhomework.UserService;

public class ClientBootstrap {


    public static void main(String[] args) throws InterruptedException {
        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class);
        System.out.println("000");
        while(true){
//            Thread.sleep(1000);
            System.out.println("开始");
            System.out.println(proxy.sayHello("are you ok?"));
        }

    }
}
